#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "loginwindow.h"
//#include <QtTextToSpeech>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    this->setWindowIcon(QIcon(":/img/bbb.png"));
    this->setWindowTitle("欢迎来到图书管理系统");
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_pushButton_clicked()
{
   loginWindow *login = new loginWindow(this);
//   QTextToSpeech *sp = new QTextToSpeech(this);
//   sp->say("你干嘛啊啊啊嗨嗨哟");
   login->show();
   this->hide();
}
